﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_ProductFieldClass.aspx.cs"
    Inherits="V5_EShop.Admin.Admin_ProductFieldClass" MasterPageFile="~/Admin/admin.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Header" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="server">
    产品扩展分类
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Nav" runat="server">
    <a href="Admin_ProductFieldClass.aspx">管理首页</a> | <a href="Admin_ProductFieldClass.aspx?Action=edit">添加扩展分类</a>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Content" runat="server">
    <asp:MultiView ID="MultiViewList" runat="server">
        <asp:View ID="View1" runat="server">
            <asp:GridView ID="gvList" runat="server" OnRowCommand="gvList_RowCommand" CssClass="tablelist tableheader overlist"
                AutoGenerateColumns="False" GridLines="None">
                <HeaderStyle CssClass="headertext" />
                <Columns>
                    <asp:BoundField DataField="ID" HeaderText="ID">
                        <HeaderStyle Width="30px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="FieldClassName" HeaderText="类型名称" />
                    <asp:TemplateField HeaderText="默认">
                        <ItemTemplate>
                            <%# DataBinder.Eval(Container.DataItem,"IsSelected").ToString()=="1"?"是":"否"%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:LinkButton ID="Button1" runat="server" CommandArgument='<%# Bind("ID")%>' CommandName="go"
                                Text="修改" />
                            <asp:LinkButton ID="Button2" runat="server" CommandArgument='<%# Bind("ID")%>' CommandName="del"
                                Text="删除" />
                            <asp:LinkButton ID="Button3" runat="server" CommandArgument='<%# Bind("ID")%>' CommandName="gosub"
                                Text="管理" />
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" Width="200px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <table cellpadding="5" cellspacing="1" class="tablelist tableheader">
                <tr>
                    <td colspan="2">
                        <asp:Label ID="lblTitle" runat="server" Text="添加分类"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">分类名称
                    </td>
                    <td>
                        <asp:TextBox ID="txtProductFieldName" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">是否默认
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlIsSelected" runat="server">
                            <asp:ListItem Value="0" Text="不默认"></asp:ListItem>
                            <asp:ListItem Value="1" Text="默认"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <asp:HiddenField ID="hfID" runat="server" Value="0" />
                        <asp:Button ID="btnSave" runat="server" Text="保存修改" OnClick="btnSave_Click" />
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="Footer" runat="server">
</asp:Content>
